Skip to content

Detect ida.exe vs ida64.exe at runtime to support IDA 9.0+#167

Open
cmoski wants to merge 1 commit into
google:mainfrom
cmoski:fix/ida9-unified-executable
Open

Detect ida.exe vs ida64.exe at runtime to support IDA 9.0+#167
cmoski wants to merge 1 commit into
google:mainfrom
cmoski:fix/ida9-unified-executable

Conversation

@cmoski

@cmoski cmoski commented May 18, 2026

Copy link
Copy Markdown

IDA 9.0 removed the separate ida64 binary and unified everything into a single ida(.exe) executable. The compile-time #if IDA_SDK_VERSION < 900 switch previously used here is unreliable in practice: binexport_shared is compiled without -DIDA_SDK_VERSION=..., so the macro defaults to 0 and the old ida64 branch is always taken. As a result, bindiff --export shells out to a non-existent ida64.exe against IDA 9.x installs and produces zero exports.

Replace the compile-time switch with a runtime check based on which executable exists in options.ida_dir. This works across all supported IDA versions:

  • IDA 9.0+ (only ida.exe present): use ida.exe.
  • IDA 7.x/8.x (both ida.exe and ida64.exe present): use ida64.exe for 64-bit IDBs (.i64), ida.exe otherwise.

No public-API change; behavior is identical on older IDA installs.

IDA 9.0 removed the separate ida64 binary and unified everything into a
single ida(.exe) executable. The compile-time `#if IDA_SDK_VERSION < 900`
switch previously used here is unreliable in practice: binexport_shared
is compiled without -DIDA_SDK_VERSION=..., so the macro defaults to 0
and the old ida64 branch is always taken. As a result, `bindiff --export`
shells out to a non-existent ida64.exe against IDA 9.x installs and
produces zero exports.

Replace the compile-time switch with a runtime check based on which
executable exists in options.ida_dir. This works across all supported
IDA versions:

  - IDA 9.0+ (only ida.exe present): use ida.exe.
  - IDA 7.x/8.x (both ida.exe and ida64.exe present): use ida64.exe
    for 64-bit IDBs (.i64), ida.exe otherwise.

No public-API change; behavior is identical on older IDA installs.
@google-cla

google-cla Bot commented May 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant